package week07.data_obs;

/**
 * Created by zhangxiaokun on 2018/3/13.
 */
public class ObsTest {
    public static void main(String[] args) {
        NumObservable num = new NumObservable();
        num.addObserver(new NumObserver());

        num.setData(1);
        num.setData(2);
        num.setData(3);

    }
}
